﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.samebuilding.domain.User"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>

<%@ page isELIgnored="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>同乐吧--我给别人的留言</title>

		<meta http-equiv="Content-Type" content="text/html; charset=uft-8" />
		<link href="../css/public.css" rel="stylesheet" type="text/css" />
		<link href="../css/column.css" rel="stylesheet" type="text/css" />
		<link href="../css/comment.css" rel="stylesheet" type="text/css" />
		<style type="">
#leave .ul .check {
	cursor: pointer;
}

#leave .ul li {
	display: none;
	border-bottom: 1px solid red;
	width: 400px;
	padding-top: 10px;
}
</style>
		<script type='text/javascript' src='../javascript/jquery-1.2.6.js'></script>
		<script type='text/javascript' src='../javascript/jquery.json.js'></script>

		<script type='text/javascript' src='../dwr/interface/GiftRecordService.js'></script>
		<script type='text/javascript' src='../dwr/engine.js'></script>
		<script type='text/javascript' src='gift.js'></script>
		
		<script type="">
<%User user=(User)session.getAttribute("user");%>
var userNo=<%=user.getUserNo()%>;
		
function listGift(){
	GiftRecordService.findRecived(userNo,function(ret){
		var html=genRecvHTML(ret);
		$J("#gift_data").html(html);
	});
}

function listsentGift(){
	GiftRecordService.findSend(userNo,function(ret){
		var html=genHTML(ret);
		$J("#gift_data").html(html);
	});
}


</script>
	</head>
	<body class="body">
		<div class="pageContent">

			<jsp:include flush="true" page="../include/header.jsp"></jsp:include>

			<!-- 页面主内容 -->
			<div class="main">


				<!-- 页面中间内容 -->
				<div class="mainContent" style="width: 780px;">

					<!--  中间栏目1 -->
					<div class="columnType2" style="width: 780px;">
						<div class="columnType2Title">
							<div class="columnType2TitlePic">
								<img src="theme/skin1/public/columnPic/04.gif" alt="" />
							</div>
							<div class="columnType2TitleText">
								我的礼物
							</div>
							<div class="columnType1TitleMore">
								<!-- 这里是更多链接，不需要请删除该链接 -->
								<!-- 
									<a href=""><img src="theme/skin1/public/more1.gif" border="0"/></a>
								 -->
							</div>
						</div>
						<div class="columnType2Content"
							style="width: 780px; background: #000;">



							<div class="sidebar clear" style="width: 780px;">
								<div id="myTabs3" class="mootabs" style="margin-top: 10px;">
									<ul class="mootabs_title">
										<li title="别人给我的礼物" style="float: left; margin-left: 10px;">
											<a href="#" id="receivedGift">别人给我的礼物</a>
										</li>
										<li title="我给别人的礼物" style="float: left; margin-left: 10px;">
											<a href="#" id="sentGift">我给别人的礼物</a>
										</li>
									</ul>
									<div style="clear: both;"></div>
									<div class="mootabs_panel" style="display: block;" id="gift_data">


										<div class="pager clear">
										</div>
									</div>

								</div>
							</div>



						</div>
					</div>

				</div>

				<!-- 页面右侧内容 -->

			</div>

			<jsp:include flush="true" page="../include/footer.jsp"></jsp:include>

		</div>


		<div id="default_reply_box" style="display: none; margin-left: 40px;">
			<input type="hidden" name="leaveMessageId" id="leaveMessageId" />
			<div>
				回复留言：
			</div>
			<textarea id="reply_content" name="reply_content"
				style="width: 300px; height: 70px;" cols="" rows=""></textarea>
			<div>
				<input id="reply_button" type="button" style="cursor: pointer"
					value="回复留言"
					onclick="if(!checkImg('reply_content')){return false;} reply();" />
				&nbsp;
				<input type="button" style="cursor: pointer" value="取消"
					onclick="hideReplyBox()" />
				<span class="lyar">还可以输入<span id="contentSize">500</span>字</span>
			</div>
		</div>
	</body>
</html>